package com.gmh.controller;


import com.gmh.dto.Result;
import com.gmh.service.IShopTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
@RequestMapping("/shop-type")
@Api(tags = "店铺类型接口")
public class ShopTypeController {
    @Resource
    private IShopTypeService typeService;

    @GetMapping("list")
    @ApiOperation("查询所有店铺类型")
    public Result queryTypeList() {
        return typeService.queryTypeList();
    }
}
